package com.example.index.god

object Index {

    private val pageIndex = hashSetOf<Pair<String, Class<*>>>()


    fun addIndex(list: List<Pair<String, Class<*>>>) {
        pageIndex.addAll(list)
    }

}


class IdenticalPair<A,B>(public val first: A,
                         public val second: B){


    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as IdenticalPair<*, *>

        if (first != other.first) return false
        if (second != other.second) return false

        return true
    }

    override fun hashCode(): Int {
        var result = first?.hashCode() ?: 0
        result = 31 * result + (second?.hashCode() ?: 0)
        return result
    }
}